home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
More Examples
/
Example Module
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
1KB
|
47 lines
;; Example Module
;; When you place this file into the Environment/Extensions folder,
;; and reboot a new menu will appear on the bottom of the palette.
;; A module has 3 parts, function definitions, menu
;; definitions and help string definitions. To make HyperHelp
;; documents create a new folder, add a hyperitem from eval menu,
;; and save it to that folder.
;; define functions
; these are dummy functions and do nothing serious, replace
; with your own functions
(defun more (x y z)
(list x y z))
(defun more3 (x y z)
(list (list x y z)))
(progn
;; define menu
(add-appendix-menu '(
(Example\ Module topic1 topic2)
(topic1 more and\ more)
(topic2 (This is not sorted.))
(and\ more more1 more2 more3)
))
;; For each terminating menu items define help strings.
;; In this example they are more, I\'m, not, sorted!,
;; more1, more2, more3. Here only two are defined.
;; The strings will be returned when you select the item
;; from the menu. Use backslash to include spaces within
;; menu items.
;; Remember to deselect Open hyperhelp on menu select from the
;; settings to get the help string pasted on window.
(def-help '(
more "(more 1 2 3)"
more3 "(more3 1 2 3)"
))
)